package com.atguigu.stgy.admin.controller;

import com.atguigu.stgy.model.entity.ProvinceInfo;
import com.atguigu.stgy.admin.service.impl.ProvinceInfoServiceImpl;
import com.atguigu.stgy.model.result.R;
import io.swagger.v3.oas.annotations.Operation;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 * (province_info)表控制层
 *
 * @author xxxxx
 */
@RestController
@RequestMapping("/admin/region/province")
public class ProvinceInfoController {
    /**
     * 服务对象
     */
    @Resource
    private ProvinceInfoServiceImpl provinceInfoServiceImpl;
    @Operation(summary = "查询所有省")
    @GetMapping("list")
    public R<List<ProvinceInfo>> list(){
        return R.ok(provinceInfoServiceImpl.list());
    }

}
